<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/16
 * Time: 14:53
 */

namespace app\api\model\Sns;


use think\Model;
use app\api\model\User\UserModel;

class Sns extends Model
{
    public function user()
    {
        return $this->hasOne(UserModel::class, 'id', 'sns_frommid')->field('id,head_img,nickname,sn');
    }
}